import request from '@/utils/request'

// 查询RealTimeInformation列表
export function listRealTimeInformation(query) {
  return request({
    url: '/realTimeInformation/realTimeInformation/list',
    method: 'get',
    params: query
  })
}

// 查询RealTimeInformation详细
export function getRealTimeInformation(id) {
  return request({
    url: '/realTimeInformation/realTimeInformation/' + id,
    method: 'get'
  })
}
// 查询RealTimeInformation列表
export function getBarChartsData(query) {
  return request({
    url: '/realTimeInformation/realTimeInformation/getBarChartsData',
    method: 'get',
    params: query
  })
}

// 新增RealTimeInformation
export function addRealTimeInformation(data) {
  return request({
    url: '/realTimeInformation/realTimeInformation',
    method: 'post',
    data: data
  })
}

// 修改RealTimeInformation
export function updateRealTimeInformation(data) {
  return request({
    url: '/realTimeInformation/realTimeInformation',
    method: 'put',
    data: data
  })
}

// 删除RealTimeInformation
export function delRealTimeInformation(id) {
  return request({
    url: '/realTimeInformation/realTimeInformation/' + id,
    method: 'delete'
  })
}
